include Makefile.rules

all: install

install:
	mkdir SAN-DATA
	cd $(SRCPATH); make install

clean:
	rm -f *.a *.so *.o
	rm -f ./frontend_server
	rm -f ./san_server
	(cd $(SRCPATH) && $(MAKE) $@)

distclean: clean
	rm -f *~ ./#*# Makefile.rules
	rm -f src/*~ src/#*#
	rm -f $(ARCHIVE).tar.bz2
	rm -rf SAN-DATA
	(cd $(SRCPATH) && $(MAKE) $@)

dist: distclean
	cd ../ && ls && tar cvjf msan/$(ARCHIVE).tar.bz2 msan/ --exclude-vcs